<template>
    <div id="app">
        <div class="header">网页头部</div>
        <div class="content">
            <Allcheck :list="list" />
            <Content :list="list" />
            <Handle :list="list" />
        </div>
        <div class="footer">网页底部</div>
    </div>
</template>
<script>
import Handle from "./components/Handle.vue";
import Allcheck from "./components/Allcheck.vue";
import Content from "./components/Content.vue";
import list from "./data.js";
export default {
    name: "APP",
    data() {
        return {
            list,
        };
    },
    components: { Content, Allcheck, Handle },
};
</script>
<style lang="scss">
* {
    margin: 0;
    padding: 0;
}

ul,
ol,
li {
    list-style: none;
}

input,
button,
textarea {
    outline: none;
    border: none;
}

a,
a:hover,
a:target,
a:link,
a:active {
    text-decoration: none;
    color: #333;
}

a,
img {
    width: 100%;
    height: 100%;
    display: block;
}

.header,
.footer {
    width: 1200px;
    height: 80px;
    background-color: skyblue;
    color: #fff;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.footer {
    height: 300px;
    font-size: 100px;
}

.content {
    width: 1200px;
    padding: 10px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.content .top,
.content .bottom {
    height: 40px;
    display: flex;
    align-items: center;
    background-color: pink;
}

.content .top > input {
    width: 20px;
    height: 20px;
    margin: 0 20px;
}

.content .bottom {
    justify-content: space-around;
}

.content .bottom > p {
    font-size: 20px;
}

.content .bottom > p > button {
    font-size: 20px;
    padding: 3px 10px;
    cursor: pointer;
    color: #fff;
}

.content .bottom > p > button.pay {
    background-color: green;
}

.content .bottom > p > button.clear {
    background-color: red;
}

.content .bottom > p > button.clear_select {
    background-color: orange;
}

.content .bottom > p > button.list {
    background-color: skyblue;
}

.content .bottom > p > span {
    color: red;
}

.content > .center {
    width: 100%;
}

li {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #333;
    box-sizing: border-box;
    margin: 10px 0;
    border-radius: 10px;
}

li > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 20px;
}

li > div > span {
    color: red;
}

li > div:first-child > input {
    width: 20px;
    height: 20px;
}
li > div > button {
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
}

li > div.del > button {
    background-color: red;
    color: #fff;
}

li > div.number > input {
    width: 50px;
    height: 24px;
    font-size: 20px;
    text-align: center;
}

.select,
.pic,
.del {
    width: 100px;
}

.name,
.price,
.subtotal {
    width: 200px;
}

.number {
    width: 300px;
}
</style>
